import service from "./request";

// 注册
export function staff_register(params = {}) {
    return service.post('/staff/register', params)
}

//首页-轮播图
export function index_banner(params = {}) {
    return service.get('/base/swiper1', { params })
}

// 员工-角色列表
export function role_list(params = {}) {
    return service.get('/role/list', { params })
}

// 登录
export function staff_login(params = {}) {
    return service.post('/staff/login', params)
}


// 服务中心轮播图
export function base_swiper2(params = {}) {
    return service.get('/base/swiper2', { params })
}

// 员工-分页列表(模糊搜索)
export function staff_search(params = {}) {
    return service.post('/staff/search', params)
}

// 员工-新增
export function staff_add(params = {}) {
    return service.post('/staff/add', params)
}

// 员工-删除
export function staff_del(params = {}) {
    return service.post('/staff/del', params)
}

// 员工-编辑
export function staff_edit(params = {}) {
    return service.post('/staff/edit', params)
}

// 客户-分页列表(模糊搜索)
export function custom_search(params = {}) {
    return service.post('/custom/search', params)
}

// 客户-删除单个客户
export function custom_del(params = {}) {
    return service.post('/custom/del', params)
}

// 客户-删除多个客户
export function custom_delmany(params = {}) {
    return service.post('/custom/delmany', params)
}

// 批量更新客户leader
export function custom_changeleader(params = {}) {
    return service.post('/custom/changeleader', params)
}

// 系统管理-实时数据
export function system_system(params = {}) {
    return service.get('/system/realtimedata', { params })
}

// 系统管理-历史数据
export function system_historydata(params = {}) {
    return service.get('/system/historydata', { params })
}